//
//  MyNavigationController.h
//  SmartRoadShow
//
//  Created by simon on 10-9-17.
//  Copyright 2010 simonwang142232@gmail.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MyViewController.h"


@interface MyNavigationController : MyViewController {
	
	UINavigationBar *navigationBar;
	UIView* contentView;
	NSMutableArray* stack;
	NSString* title;
	MyViewController *topViewController;
	UILabel* titleLabel;
	BOOL hasSoloController; //栈中是否只有一个控制器

}


@property(nonatomic,readonly,retain) UINavigationBar *navigationBar;
@property(nonatomic, readonly, retain) MyViewController *topViewController;
@property(nonatomic, copy) NSString* title;

- (id)initWithRootViewController:(UIViewController *)rootViewController;
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated;
- (UIViewController *)popViewControllerAnimated:(BOOL)animated;

//栈中只放一个控制器.
- (void) pushSoloViewController:(UIViewController*)viewController;

//把栈中的第i个控制器的某个视图放到最上面.
- (void) bringViewToTop:(UIView*)aView;

@end

//navigation + content + tabbar = 480
#define kNavigationBarHeight 44
#define kContentViewHeight 346

//navigation bar上的字体
#define kNavigationBarFont [UIFont boldSystemFontOfSize:20]
